<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- advtutorial.qdoc -->
  <title>QML Advanced Tutorial | Qt Quick 5.12.3</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.12</a></td><td ><a href="qtquick-index.html">Qt Quick</a></td><td >
			QM<span lang="zh-cn">L 进阶教程</span></td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtquick-index.html">Qt 5.12.3 参考指南</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
  <link rel="next" href="qtquick-tutorials-samegame-samegame1-example.html" />
<p class="naviNextPrevious headerNavi">
<a class="nextPage" href="qtquick-tutorials-samegame-samegame1-example.html">QML 
<span lang="zh-cn">进阶教程</span> 1 - <span lang="zh-cn">创建游戏画布和方块</span></a>
</p><p/>
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QM<span lang="zh-cn">L 进阶教程</span></h1>
<span class="subtitle"></span>
<!-- $$$qml-advtutorial.html-description -->
<div class="descr"> <a name="details"></a>
<p>本教程逐步介绍如何使用 QML 创建完整的应用程序。它假设您已经了解 QML 的基础知识（例如，通过阅读<a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtquick/qml-tutorial.html">简单教程</a>）。</p>
<p>在本教程中，我们编写了一个游戏——Same game，基于声明式示例目录中的Same game应用程序，它看起来像这样:</p>
<p class="centerAlign"><img src="images/declarative-samegame.png" alt="" /></p><p>
	我们将介绍生成功能齐全的应用程序的概念，包括 JavaScript 集成、使用 QML <a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtquick/qml-qtquick-state.html">Qt 
	<span lang="zh-cn">Quick</span>状态</a>和<a href="file:///E:/WLL/work/Qt5.12-Document-Trans-in-Chinese/qtquick/qml-qtquick-behavior.html">行为</a>来管理组件和增强您的界面，以及存储持久的应用程序数据。</p>
<p>了解JavaScript有助于理解本教程的部分内容，但如果您不了解JavaScript，您仍然可以了解如何集成后端逻辑来创建和控制QML类型。</p>
<p>教程的章节:</p>
<ol class="1" type="1"><li>
	<a href="qtquick-tutorials-samegame-samegame1-example.html">创建游戏画布和方块</a></li>
<li><a href="qtquick-tutorials-samegame-samegame2-example.html">填充游戏画布</a></li>
<li><a href="qtquick-tutorials-samegame-samegame3-example.html">实现游戏逻辑</a></li>
<li><a href="qtquick-tutorials-samegame-samegame4-example.html">收尾工作</a></li>
</ol>
<p>本教程中的所有代码都可以在Qt的<code>examples/quick/tutorials/samegame</code>目录中找到。</p>
</div>
<!-- @@@qml-advtutorial.html -->
<p class="naviNextPrevious footerNavi">
<a class="nextPage" href="qtquick-tutorials-samegame-samegame1-example.html">QML Advanced Tutorial 1 - Creating the Game Canvas and Blocks</a>
</p>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
